<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let obj1 = {
        name: "小明",
        score: 60,
      };

      let obj2 = {
        name: "小鱼",
        score: 100,
      };
      // console.log(obj1.score);
      // console.log(obj2.score);
      let arr = null
      arr = obj1.score
      obj1.score = obj2.score
      obj2.score = arr
      console.log(obj1.score);
      console.log(obj2.score);
    </script>
  </body>
</html>
